//
//  InformationDetailSetStateApi.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/1/6.
//

#import "InformationDetailSetStateApi.h"

@implementation InformationDetailSetStateApi
{
    NSString *_informationId;
    NSNumber *_state;
}

- (instancetype)initWithInformationId:(NSString *)informationId state:(nonnull NSNumber *)state
{
    self = [super init];
    if (self) {
        _informationId = informationId;
        _state = state;
    }
    return self;
}

- (NSString *)requestUrl {
    
    return @"user-message-relation/saveState";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"userId"] = [LocalData fetchUserInfo].userId;
    params[@"messageDetailId"] = _informationId;
    params[@"state"] = _state;
    return params;
}



@end
